﻿package src {

	import flash.events.Event;
	import flash.events.MouseEvent;

	import org.papervision3d.view.*;
	import org.papervision3d.cameras.*;
	import org.papervision3d.objects.*;

	public class View extends BasicView {
		private var config:Object = CB.config;
		
		public function View():void {
			init();
			CB.addEventListener(E.RESIZE, resizeHandler);
		}
		
		private function init():void {
			CB.main = new DisplayObject3D();
			scene.addChild(CB.main);
			startRendering();
			//
			CB.box = new Box();
			CB.main.addChild(CB.box);
			//调试坐标系
			CB.debug = new Debug();
			CB.main.addChild(CB.debug);
			//
			camera.y = 200;
            camera.z = - 600;
			//camera.useCulling = true;
		}

		private function resizeHandler(e:E):void {
			
		}


		override protected function onRenderTick(e:Event=null):void {
			super.onRenderTick(e);

		}

	}
}